{anchor:msg_loseopportunity_0}
!! LoseOpportunity message
!!! Constructor
!!!! new COSA.Request.LoseOpportunity(opportunityClose, status, requestId)
|| Param || Type || Description ||
| opportunityClose | [COSA.BusinessEntity|COSA Namespace#lib_businessentity_0] | Opportunity Close Entity |
| status | {{number}} | Status |
| requestId _(optional)_ | {{string}} | Request Unique Identifier (GUID) |
!!! Properties
|| Name || Type || Description ||
| opportunityClose | [COSA.BusinessEntity|COSA Namespace#lib_businessentity_0] | Opportunity Close Entity |
| status | {{number}} | Status |
| requestId _(optional)_ | {{string}} | Request Unique Identifier (GUID) |
!!! Example
{code:javascript}
var be = new COSA.BusinessEntity('opportunityclose', null, {
        'opportunityid': new COSA.EntityReference('opportunity', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX')
    });
var loseOpportunity_0 = new COSA.Request.LoseOpportunity(be, 4);

//message execution
loseOpportunity_0.execute(function ( r ) {
	//working with a response
});
//or
COSA.Request.Execute(loseOpportunity_0, function ( r ) {
	//working with a response
});
{code:javascript}

[Back to Top|#tbl_contents_0]